package br.com.etecmatao.business.impl;

import br.com.etecmatao.business.AbstractBusiness;
import br.com.etecmatao.business.CriadorBusiness;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class CriadorBusinessImpl extends AbstractBusiness implements CriadorBusiness {

    public String Criar(String titulo, String conteudo) {
//        try {
//            File arquivo = new File("c:\\" + titulo + ".txt");
//            FileOutputStream fos = new FileOutputStream(arquivo);
//            fos.write(conteudo.getBytes());
//            return "c:\\" + titulo + ".txt";
//        } catch (FileNotFoundException,IOException ex){
//            Logger.getLogger(CriadorBusinessImpl.class.getName()).log(Level.SEVERE, null, ex);
//        }
        return "";
    }
}